home *** CD-ROM | disk | FTP | other *** search
- Path: soap.news.pipex.net!pipex!usenet
- From: m.hendry@dial.pipex.com (Mathew Hendry)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: 680X0 -> PPC translator?
- Date: Wed, 6 Mar 96 20:24:04
- Organization: Private node.
- Distribution: world
- Message-ID: <19960306.4543C8.11FB8@an218.du.pipex.com>
- References: <19960306.4307B0.C9EB@an132.du.pipex.com> <DnuyrH.H0u@cix.compulink.co.uk>
- NNTP-Posting-Host: an218.du.pipex.com
- X-Newsreader: TIN [AMIGA 1.3 950726BETA PL0]
-
- Jolyon Ralph (jralph@cix.compulink.co.uk) wrote:
- : > As has already been discussed, code is often misplaced in data hunks
- : > and vice versa. How do you intend to handle that?
- :
- : Who cares? In that case the original application was badly written.
- : No-one can possibly say a translator will work for 100% of all cases.
- : Some code will always break. That's tough.
-
- Compiled programs commonly have data and code misplaced like this, and it's
- pretty much impossible for the humble programmer to control its occurrence;
- it's entirely controlled by the compiler. Try even compiling a program as
- simple as "int main(void) {return 0;}" with standard options set and you will
- see a pile of data misplaced in the first code hunk (this compiled with SAS
- 6.x, the compiler used probably by the majority of AmigaOS application
- developers).
-
- Saying "That's tough" isn't much help when only a fraction (I have seen
- estimates of 10-20%) of applications are going to work on a system which uses
- static translation. That sort of figure is just not acceptable, and it's
- likely that the largest and most complex applications are going to be
- hardest hit. Have you examined your Photogenics code carefully to see just
- how accurately the hunks have been organised? - not an accusation, just a
- question.
-
- A more flexible dynamic emulation system with stored translations is a much
- better solution, and will get a hell of a lot more applications working.
-
- -- Mat.
-